//
//  ReportTopCell.m
//  ForYourBeauty
//
//  Created by Kelly xu on 2019/6/2.
//  Copyright © 2019 changrenTech. All rights reserved.
//

#import "ReportTopCell.h"
#import "NSDate+DWDateUtils.h"
@implementation ReportTopCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setReportValue:(ReportListModel*)model{
    self.timeLab.text = [NSDate timeWithTimeInterval:[NSString stringWithFormat:@"%f",model.addTime/1000]];
    NSMutableString *timeStr = [[NSMutableString alloc]initWithCapacity:0];
    [timeStr appendString:[NSDate timeWithTimeInterval:[NSString stringWithFormat:@"%f",model.beganTime]]];
    [timeStr appendString:@"-"];
    [timeStr appendString:[NSDate timeWithTimeInterval:[NSString stringWithFormat:@"%f",model.endTime]]];
    [timeStr appendString:@"对比分析"];
    self.titleLab.text = timeStr;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
